package com.wyj.chat.websocket_chat.dao;

import com.wyj.chat.websocket_chat.pojo.User;
import org.apache.ibatis.annotations.Mapper;


@Mapper
public interface UserMapper {

    User userLogin(User user);

    User getById(String id);

    int insertUser(User user);

    int updateUser(User user);

    /**
     * 修改密码
     */
    int updatePassWordByName(User user);
    /**
     * 名字搜索
     */
    User getByName(String name);
}
